<?php
/**
 * Created by PhpStorm.
 * User: 14775
 * Date: 2017/5/31
 * Time: 16:50
 */

namespace Sqapi\Controller;


use Common\Controller\ApibaseController;
use Sqapi\BLL\Authenticate;

class ApiAuthController extends ApibaseController
{
    function _initialize()
    {
        $auth = new Authenticate();
        $ip = get_client_ip(0, true);
        if (!$auth->validate(I('get.accessToken'), $ip)) {
            $this->apiJsonReturn(false, 704);
        }
    }
}